<div class="page">
    <div class="pt-page-header">
        {$title}
    </div>
    <div class="pt-page-body">
        <div class="pt-page-main">

            {if !empty($webList)}
            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-condensed" width="100%">
                        <tr>
                            <th width="120">网站名称</th>
                            <th width="300">域名</th>
                            <th width="60">端口</th>
                            <th width="150">网站目录</th>
                            <th width="150">状态</th>
                            <th>操作</th>
                        </tr>
                        {foreach $webList as $webName=>$web }
                            <tr>
                                <td>{$webName}</td>
                                <td>{$web.server_name}</td>
                                <td>{$web.port|default:80}</td>
                                <td>{$web.document_root}</td>
                                <td>{$webStatus[$web.status]|default:'闭关'}</td>
                                <td>
                                    <a href="{$Route->U('editWeb',['id'=>$webName])}">修改</a>

                                </td>
                            </tr>
                        {/foreach}
                    </table>
                </div>
            </div>
            {/if}
        </div>
    </div>
</div>